<?php
include('../includes/config.php');
include('../includes/va_db.php');

$id = $_GET['odr_id'];
$value = $_GET['value'];

if(is_numeric($id) && is_numeric($value))
{
	$arr1['odr_status'] = $value;
	
	if($value == 2)
		$arr1['odr_view'] = 1;
	else
		$arr1['odr_view'] = 0;
	
	$date = date( "Y-m-d G:i:s", time());
	$arr1['odr_last_update_date'] = $date;
	
	vaUpdate('orders',$arr1,' odr_id ='.$id);
}

?>

